.table tr td.up {
    color: #f00 !important;
}

.table tr td.down {
    color: #0a0 !important;
}

.loading-indicator {
    display: none;
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

.loading-indicator.active {
    display: inline;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.refresh-time {
    font-size: 12px;
    color: #666;
}

.new-stock {
    background-color: #e8f5e9 !important;
    animation: highlight 2s;
}

.focus-stock {
    background-color: #fff3e0 !important;
    border-left: 4px solid #ff9800 !important;
    font-weight: 500;
}

/* 添加不同类型股票的样式 */
.stock-type-0 {
    /* 正常股票 */
    background-color: transparent !important;
}

.stock-type-1 {
    /* 重点关注 */
    background-color: #fff3e0 !important;
    border-left: 4px solid #ff9800 !important;
    font-weight: 500;
}

.stock-type-2 {
    /* 新出现 */
    background-color: #e8f5e9 !important;
    animation: highlight 2s;
}

.stock-type-3 {
    /* 洗盘 */
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3 !important;
}

.stock-type-4 {
    /* 连续 */
    background-color: #fce4ec !important;
    border-left: 4px solid #e91e63 !important;
}

.copy-btn {
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f8f9fa;
    display: none;
}

.focus-stock .copy-btn {
    display: inline-block;
}

.copy-btn:hover {
    background-color: #e9ecef;
}

@keyframes highlight {
    from {
        background-color: #a5d6a7;
    }
    to {
        background-color: #e8f5e9;
    }
}

.stock-count {
    font-size: 14px;
    margin-left: 10px;
}

.history-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}

.history-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.input-group-text {
    align-items: start !important;
    padding-top: 8px;
}

.form-control {
    min-height: 30px;
}

/* 排序功能样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sort-icon {
    font-size: 12px;
    color: #ccc;
    margin-left: 5px;
}

.sortable.sort-asc .sort-icon:after {
    content: ' ↑';
    color: #007bff;
}

.sortable.sort-desc .sort-icon:after {
    content: ' ↓';
    color: #007bff;
}

.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    color: #007bff;
}

/* 热度榜下降趋势标识样式 */
.hot-rank-declining {
    color: #dc3545 !important;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
    animation: pulse-red 1.5s infinite;
}
.green-rank-declining {
    color: green !important;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 可点击的板块名称样式 */
.gainian-clickable {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 热门板块列宽度设置 */
.gainian-column {
    width: 400px;
    min-width: 400px;
    max-width: 800px;
}
.gainian-clickable:hover {
    background-color: #e6f3ff;
    color: #0056b3;
    text-decoration: none;
}

.gainian-clickable:active {
    background-color: #cce7ff;
    transform: scale(0.98);
}

/* 复制成功图标样式 */
.copy-success-icon {
    color: #28a745;
    font-weight: bold;
    margin-left: 5px;
    animation: fadeInOut 1.5s ease-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 全局消息滑入动画 */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 全局复制消息样式 */
.global-copy-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
} 